package net.lainiao.service.service;

import net.lainiao.base.model.Reptilemodels;
import net.lainiao.service.dao.ReptilemodelsMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/1/9.
 */
@Service
public class ReptilemodeService {
    Logger logger= LoggerFactory.getLogger(ReptilemodeService.class);
    @Resource
    private ReptilemodelsMapper reptilemodelsMapper;
    public int adds(List<Reptilemodels> reptilemodelses) {
        if(reptilemodelses.size()==0){
            return 0;
        }
        return reptilemodelsMapper.adds(reptilemodelses);
    }

    public List<Reptilemodels> getNoAccess() {
        return reptilemodelsMapper.getNoAccess();
    }

    public int setAccess(Integer id) {
        return reptilemodelsMapper.deleteByPrimaryKey(id);
    }

    public int geCount() {
        return reptilemodelsMapper.getCount();
    }
}
